package com.hyh.spring.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @BelongsPackage: com.hyh.spring.domain
 * @ClassName CommonResult
 * @Author: hyhWTX
 * @CreateTime: 2023-06-05  17:34
 * @Description: TODO (一句话描述以下该类的功能)
 * @Version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {
    private Integer code;
    private String  message;
    private T       data;

    public CommonResult(Integer code, String message)
    {
        this(code,message,null);
    }
}